-- GENERATED SPELL FOR [Venture Co. Deforester] --


function spell0_3991(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3991', 3000, 1)
end

function spell1_3991(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(5740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3991', 8000, 1)
end

function Sorts_3991(pUnit, Event)
local choix_sorts_3991 = math.random(0, 1)
if choix_sorts_3991 == 0 then
pUnit:RegisterEvent('spell0_3991', 1, 1)
end
if choix_sorts_3991 == 1 then
pUnit:RegisterEvent('spell1_3991', 1, 1)
end
end

function mob3991_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3991', math.random(1500, 3000), 1)
end

function mob3991_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3991_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3991_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3991, 1, 'mob3991_Action')
RegisterUnitEvent(3991, 2, 'mob3991_Leave')
RegisterUnitEvent(3991, 3, 'mob3991_Kill')
RegisterUnitEvent(3991, 4, 'mob3991_Die')
